package KK.Register.View
{
	import KK.Data.GameData;
	import KK.EMVC.View.View;
	import KK.Event.RegisterEvent;
	import KK.GameBase.IMessageFollowers;
	import KK.GameBase.IMessageQueue;
	
	import land.land;
	
	public class VRegister extends land
	{
		private var id:int;
		public function VRegister(id:int)
		{
			//TODO: implement function
			super();
			this.id=id; 
			GameData.ModuleID['VRegister']=id;
		} 
		
		
		/**
		 * 缁戝畾
		 * 
		 * @param _event    _event
		 */
		override public function BindEvent(_event:IMessageQueue):Boolean{
			super.BindEvent(_event);
			AttentionMessage(RegisterEvent.DOUBLE_NAME,onDoubleName);
			return true;
		}
		
		
		/**
		 * 閲嶅鍚嶅瓧
		 * 
		 * @param event    event
		 */
		private function onDoubleName(event:RegisterEvent):void{
//			this.doubleName(true);
			this.ShowErrorMSG(event.Msg);
		
		}
		
		
		override public function Show():void{
			GetMC().visible=true;
		}
		
		override public function Hide():void{
			GetMC().visible=false;
		}
		
		
		
	}
}